package cn.dakaqi.activity.sign.record.services;

import cn.dakaqi.entities.ActivitySignRecord;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by chunyang on 2016/4/17.
 */
public interface ActivitySignRecordService
{
    void save(String param)throws ServiceRuntimeException;
    void save(ActivitySignRecord activitySignRecord)throws ServiceRuntimeException;
    Page<ActivitySignRecord> queryByMember(String memberCode,int pageNumber)throws ServiceRuntimeException;
    Page<ActivitySignRecord> queryByMember(Long volunteerId,int pageNumber)throws ServiceRuntimeException;
    Page<ActivitySignRecord> queryByActivity(String activityCode,int pageNumber)throws ServiceRuntimeException;
    Page<ActivitySignRecord> queryByActivity(Long activityId,int pageNumber)throws ServiceRuntimeException;
    List<ActivitySignRecord> queryByMemberAndActivity(String memberCode,String activityCode,int pageNumber)throws ServiceRuntimeException;
    List<ActivitySignRecord> queryByMemberAndActivity(Long volunteerId,Long activityId,int pageNumber)throws ServiceRuntimeException;
    String findFirstRecord(Long volunteerId,Long activityId)throws ServiceRuntimeException;
    String findLastRecord(Long volunteerId,Long activityId)throws ServiceRuntimeException;
}
